package com.github.jspxnet.worktask.table;

import com.github.jspxnet.enums.AuditEnumType;
import com.github.jspxnet.sober.annotation.Column;
import com.github.jspxnet.sober.annotation.Id;
import com.github.jspxnet.sober.annotation.Table;
import com.github.jspxnet.sober.table.OperateTable;
import com.github.jspxnet.utils.StringUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Table(name = "jwf_user_flow_log", caption = "用户审批记录")
@Data
public class UserFlowLog extends OperateTable  {
    @Id
    @Column(caption = "ID", notNull = true)
    private long id = 0;

    @Column(caption = "用户流程ID", length = 32, notNull = true)
    private String userFlowId = StringUtil.empty;

    // 状态，1：通过；2：驳回
    @Column(caption = "状态",length = 2,enumType = AuditEnumType.class, notNull = true)
    private int auditType = AuditEnumType.WAIT.getValue();

    @Column(caption = "审核意见", length = 10000)
    private String note = StringUtil.empty;

    //json 格式保存
    @Column(caption = "意见附件",length = 2000)
    private String attachment;

}
